# -*- coding: utf-8 -*-
# standard
import os
import sys

# third
import httpx
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from fastapi import Depends, HTTPException, status
from fastapi import Request

# local
_P_PATH =  os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
if _P_PATH not in sys.path:
    sys.path.append(_P_PATH)
from db.sqlalchemy_dbc import *


"""
@Title:   
@File: base_model.py
@Author: walle 2025年05日16日 15时52分36秒
@Version: 1.0.0
@Desc: 
"""


OAUTH2_SCHEME = OAuth2PasswordBearer(tokenUrl="v1/secure/login")  # OAuth2PasswordBearer
if platform.system() == "Windows":  # 如果是windows系统
    AIOPS_HOST = "http://127.0.0.1:8088"  # aiops服务地址
else:
    AIOPS_HOST = "https://aiops.ihcc.com.cn:443/"


class MyEnum(Enum):
    # 枚举基类
    @classmethod
    def get_selector(cls) -> list:
        """
        返回一个选择器
        """
        return [{"name": key.value, "value": key.value} for key in cls]



class CommonDeleteParams(BaseModel):
    # 通用删除参数
    ids: List[int] = Field(..., title="id列表")











if __name__ == '__main__':
    pass